<template>
  <div id="app">
    <router-view></router-view>
    <TabBar v-show="status" />
  </div>
</template>

<script>
import TabBar from '@/components/TabBar'
export default {
  name: 'app',
  data () {
    return {
      status: true
    }
  },
  components: {
    TabBar
  },
  watch: {
    '$route' (to, from) {
      this.status = to.meta.status
    }
  }
}
</script>

